<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/* Start of file gas.php */
/* Location: ./billing-ap/controllers/gas.php */
class Gas extends CI_Controller {
	
	function __construct(){
		parent::__construct();
        if(!$this->session->userdata('username')) /** restrict area if not acces to login page**/
			redirect('/',301); 
    }
    
    function sale_pie(){
		$this->ws->set('title',lang('chrtGasSalePie'));/** title page */
		$this->ws->set('username',$this->session->userdata('username')); /** username session */
		$this->ws->set('department',$this->session->userdata('dep')); /** departement session */
		$this->ws->set_theme('smooth'); /** set theme to administrator*/
		$this->ws->view('gas/index_salePie'); /** view layout to views/cashflow/index **/     
	}
    
    function buy_pie(){
		$this->ws->set('title',lang('chrtGasBuyPie'));/** title page */
		$this->ws->set('username',$this->session->userdata('username')); /** username session */
		$this->ws->set('department',$this->session->userdata('dep')); /** departement session */
		$this->ws->set_theme('smooth'); /** set theme to administrator*/
		$this->ws->view('gas/index_buyPie'); /** view layout to views/cashflow/index **/     
	}
    
}    